#ifndef MESSAGE_H
#define MESSAGE_H

#include <QString>

class Message
{
public:
    enum MessageType
    {
        Received,
        Sent
    };

    Message(MessageType type, const QString &text)
        : m_type(type), m_text(text) {}

    MessageType type() const { return m_type; }
    QString text() const { return m_text; }

private:
    MessageType m_type;
    QString m_text;
};

#endif // MESSAGE_H
